package s02;

import java.util.Arrays;

public class S06 {

	public static void main(String[] args) {
		String[]ss1= {"How","are","you"};
		System.out.println(Arrays.toString(ss1));
		
		String s="How     are  you";
		String[] ss2 = s.split("\\s+"); //字符串的split方法可以把字符串分割成一个字符串数组
		System.out.println(Arrays.toString(ss2));
		System.out.println(s.length());//获取字符串的长度
	}

}
